package xyz.molzhao.alink.properties;

import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @author Molzhao
 * @Description:
 * @date 2022/2/20 15:37
 */
@Data
@Component
public class StorageClientDetailProperties {
    private String accessKey;

    private String accessKeySecret;

    private String bucketName;

    private String endpoint;

    private String endpointUrlFormat;

    public String getEndpointUrlFormat() {
        return "%s://%s." + endpoint + "/%s";
    }
}
